 |
 |
 |
 |
#230031 - 06/20/03 09:56 AM
Re: Integrating Custom Title hack with BDay Hack
[Re: Daine]
|
Addict
Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
|
Hmm.. ok, there was no get_input for the title variable.. so I went ahead and added a line to do this with the rest of the get inputs. Unfortunately, that did not work. <br /> <br />Also, what I have noticed, is for the people who are able to change their titles, you can change it fine. But when you go back to your profile, the title box is blank, even though you do have a custom title. <br /> <br />I don't remember if this is how it worked in the past, but so far that and the inability for people to not change their profile w/o a custom title are the only two issues I see at this time <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />For now, I have just commented out this section: <br /> <br /> // -------------------------------------------------- <br />// If title is greater than 100 or blank then we can't proceed <br /> if (( strlen($Title) > 100 ) || (!$Title)) { <br /> $html -> not_right($ubbt_lang['TITLE_TOO_LONG'],$Cat); <br /> } <br /> <br /> <br />And it at least allows users who can't set a title to update their profile, but the too long and blank checks are gone. So that is a temporary solution anyway <img src="/forum/images/graemlins/smile.gif" alt="" />
Edited by Jeremy (06/20/03 10:00 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230034 - 06/22/03 08:26 PM
Re: Integrating Custom Title hack with BDay Hack
[Re: palmen]
|
Addict
Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
|
Hey Josh, I fixed the hack somehow (Not sure how since I'm a complete idiot when it comes to messing with code) <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />But anyway, there was a variable change I believe in 6.3.. from $UserTitle to just $Title. Also, in the editbasic script, it looked like the query was not pulling the title information, so by simply adding that to the query, and changing the $UserTitle to $Title, it seems to be working. <br /><br />The titles now display in the textbox, only the proper users are allowed to edit their title, and users don't get the "too long or blank" message anymore <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />So updating your instructions shouldn't be too hard at all
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|